package com.aspose.cells.b.a.c;

import com.aspose.cells.zaku;
import com.aspose.cells.a.c.zj;
import java.util.Locale;

public class za {
   private Locale a;
   private int b;
   private zc c;
   private zb d;
   private boolean e = false;
   private static final za f;
   private static final za g;

   public za(Locale var1) {
      this.a = var1;
      this.b = zaku.a(var1.getLanguage(), var1.getCountry(), var1.getVariant());
      this.e = false;
      this.c = new zc(this, false);
      this.d = new zb(this);
   }

   public za(int var1, boolean var2) {
      this.a = zj.b((short)var1);
      this.b = var1;
      this.e = var2;
      this.c = new zc(this, var2);
      this.d = new zb(this);
   }

   public za(Locale var1, boolean var2) {
      this.a = var1;
      this.b = zaku.a(var1.getLanguage(), var1.getCountry(), var1.getVariant());
      this.e = var2;
      this.c = new zc(this, var2);
      this.d = new zb(this);
   }

   public static za a() {
      return g;
   }

   public static za b() {
      return f;
   }

   public boolean c() {
      return this.e;
   }

   public zc d() {
      return this.c;
   }

   public zb e() {
      return this.d;
   }

   public String f() {
      return this.a.getISO3Language();
   }

   public int g() {
      return this.b;
   }

   public Locale h() {
      return this.a;
   }

   public boolean equals(Object another) {
      if (another == null) {
         return false;
      } else if (this == another) {
         return true;
      } else {
         return !(another instanceof za) ? false : this.a((za)another);
      }
   }

   public boolean a(za var1) {
      if (var1 == null) {
         return false;
      } else if (this.a.equals(var1.a)) {
         return true;
      } else {
         boolean var2 = false;
         String var3 = this.a.getCountry();
         String var4;
         if (var3 != null) {
            var4 = var1.a.getCountry();
            if (var4 != null) {
               if (!var3.equals(var4)) {
                  return false;
               }

               var2 = true;
            }
         }

         var3 = this.a.getLanguage();
         if (var3 != null) {
            var4 = var1.a.getLanguage();
            if (var4 != null) {
               if (!var3.equals(var4)) {
                  return false;
               }

               var2 = true;
            }
         }

         return var2;
      }
   }

   static {
      f = new za(Locale.US, true);
      g = new za(Locale.getDefault());
   }
}
